<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title>订单列表页-美丽说</title>
	<!--<link rel="stylesheet" href="http://localhost/meilishuo/Static/bootstrap/css/bootstrap.min.css" />-->
	<link rel="stylesheet" href="http://localhost/meilishuo/template/default/css/order.css" />
	<script type="text/javascript" src="http://localhost/meilishuo/Static/jquery/jquery-1.7.2.min.js" ></script>
	<script type="text/javascript" src="http://localhost/meilishuo/template/default/js/porder.js" ></script>
</head>
<body>
	<!--顶部登录注册区域开始-->
	<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<script type="text/javascript" src="http://localhost/meilishuo/Static/jquery/jquery-1.7.2.min.js">
	
</script>
<script type="text/javascript">
	$(function(){
		$("#nav .outer .container .top_cate").hover(function(){
			$(this).children('.second_stage').show();
		},function(){
			$(this).children('.second_stage').hide();
		})
	})
</script>
<!--顶部登录注册区域开始-->
	<div id="top">
		<div class="head">
			<ul class="container">
				    <?php if($hd['session']['username'] && $hd['session']['uid']){ ?>
					<li><a class="out" href="<?php echo U('Member/out');?>">退出</a></li>
					<li class="myself"><a  href=""><img src="http://localhost/meilishuo/template/default/img/my_face.jpg" class="my_face" alt="" /><?php echo $hd['session']['username'];?></a></li>
					<li><a href=""><span class="my_love"></span>我的喜欢</a></li>
				<?php }else{ ?>
				<li><a class="first" href=""><span class="weixin"></span>微信登陆</a></li>
				<li><a href=""><span class="qq"></span>QQ登陆</a></li>
				<li><a href="<?php echo U('Member/login');?>">登陆</a></li>
				<li><a href="<?php echo U('Member/register');?>">注册</a></li>
				<?php } ?>
				<li><a href="<?php echo U('Cart/ajax_add_cart');?>"><span class="my_car"></span>我的购物车<i class="num">    <?php if($_SESSION['cart']['goods']){ ?> <?php  echo count($_SESSION['cart']['goods']) ?><?php }else{ ?>0<?php } ?> </i></a></li>
				<li><a href="<?php echo U('Porder/index');?>"><span class="my_order"></span>我的订单</a></li>
				<li><a href=""><span class="download"></span>下载App</a></li>
				<li><a class="custom" href="">客户服务</a></li>
			</ul>
		</div>
	</div>
	<!--顶部登录注册结束-->
	<!--搜索区域开始-->
		<div id="search"><!--search-->
			<div class="outside"><!--outside-->
				<a class="logo" href=""></a>
				<div class="container"><!--container-->
					<div class="baobei">
						<a href="" class="cat">
							宝贝<span class="triangle"></span>
						</a>
					</div><!--baobei-->
					<div class="magnifier"></div>
					<input placeholder="搜索流行商品" class="search_content" type="text" />
					<input class="sub" type="submit" value="搜索" />
				</div><!--container-->
			</div><!--outside-->
		</div><!--search-->
	<!--搜索区域结束-->
	
	<!--导航条开始-->
	<div id="nav">
		<div class="outer">
			<ul class=container>
				<li><a class="first" href="<?php echo U('Index/index');?>">首页</a></li>
				<?php $cate=K('Category')->get_all_data(array('pid'=>0));
		
		foreach ($cate as $k => $v) {
			$cate[$k]['son']=K('Category')->get_all_data_notree(array('pid'=>$v['cid']));
			foreach ($cate[$k]['son'] as $key => $value) {
				$cate[$k]['son'][$key]['son']=K('Category')->get_all_data_notree(array('pid'=>$value['cid']));
			}
		} ?>
				<?php foreach ($cate as $k=>$v){?>
				<li class="top_cate">
					<a class="" href="<?php echo U('List/index',array('cid'=>$v['cid']));?>"><?php echo $v['cname'];?><span class="triangle"></span></a>
					<div class="second_stage">
						<?php foreach ($v["son"] as $key=>$value){?>
						<a href="<?php echo U('List/index',array('cid'=>$value['cid']));?>"><?php echo $value['cname'];?></a>
						<?php }?>
					</div><!--second_stage-->
				</li>
				<?php }?>
			</ul><!--container-->
		</div><!--outer-->
	</div><!--nav-->

	<!--导航条结束-->

	<!--导航条结束-->
	<!--订单头部开始-->
	<div id="order_head">
		<p><a href="">美丽说</a>>
		<a href="">我的美丽说订单</a>>
		订单列表</p>
	</div>
	
	
	<!--订单头部结束-->
	<!--我的订单主体内容部分开始-->
	<div id="order">
		<ul class="left">
			<li><a class="select" href="">已买到的商品</a></li>
			<li><a href="<?php echo U('Cart/ajax_add_cart');?>">我的购物车</a></li>
			<li><a href="<?php echo U('Address/index');?>">我的收货地址</a></li>
			<li><a href="">我的优惠券</a></li>
			<li><a href="">退款/退货</a></li>
			<li><a href="">售后</a></li>
			<li  class="last"><a href="">我的投诉</a></li>
		</ul><!--left-->
		<div class="order_title">
			<span style="width: 210px;">商品信息</span>
			<span style="width: 86px;">单价（元）</span>
			<span style="width: 57px;">数量</span>
			<span style="width: 136px;">售后</span>
			<span style="width: 102px;">合计（元）</span>
			<span  style="width: 128px;"><select name="status" class="status" style="margin-top: 3px; font-size: 1px;color: #666;font-weight: 700; width: 120px;"  class="form-control">
  <option  value="0" >未完成订单</option>
  <option     <?php if($_GET['w']){ ?>selected<?php } ?> value="1">已完成订单</option>
</select></span>
			<span style="width: 101px;">操作</span>
		</div><!--order_title-->
		    <?php if(!$data){ ?>
			<div class="no_order">
				<div class="no">
					<p>很抱歉，没有找到相关的订单！</p>
					<a href="<?php echo U('Porder/index');?>">查看全部订单</a>
				</div>
			</div>
			<?php }else{ ?>
		<?php foreach ($data as $k=>$v){?>
			<div class="order_no">
				<span>订单号：<?php echo $v['orderno'];?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;商家：<a href="">vastand维尚</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;成交时间：<?php echo date('Y-m-d h:m:s',$v['otime']);?></span>
			</div><!--order_no-->
			
			<!--订单详情-->
			
			<?php foreach ($v["oid"] as $key=>$value){?>
			<div class="order_details">
				<span style="width: 210px;"><a  class="first" href="<?php echo U('Show/index',array('gid'=>$value['gid']));?>"> <img src="http://localhost/meilishuo/<?php echo $value['lthumb'];?>" alt="" /> <p><?php echo hd_substr($value['gname'],10,'...');?><br /><i>颜色：图片色&nbsp;尺码：均码</i></p></a></span>
				<span class="number" style="width: 86px;"><?php echo $value['price'];?></span>
				<span class="number" style="width: 57px;"><?php echo $value['pno'];?></span>
				<span style="width: 136px;">&nbsp;</span>
				<span class="price" style="width: 102px;"><?php echo $value['sprice'];?><br />免运费</span>
				<span  class="price"  style="width: 128px;">
					    <?php if($v['status']){ ?>发货中<?php }else{ ?>等待付款<?php } ?>
					<br /><a href="">订单详情</a></span>
				<br />
				<a href="">关闭交易</a><br />
				
			</div><!--order_details-->
			<?php }?>
			    <?php if($v['status']){ ?>
				<?php }else{ ?>
				
				<div class="total">
					<span style="margin-right: 440px;" >请尽快付款，或者
						<a class="can_order" style="margin-left: 10px; width:60px;font-size: 12px; background: none;color: #FF6699; float: right;" href="javascript:;">取消订单</a>
					</span>
						<!--弹出提示框-->
							<div  class="del_one">
								<a href="javascript:;" style="float: right;background: none; width: 20px;" class="click"><img style="width: 18px;height: 18px;" src="http://localhost/meilishuo/template/default/img/click.jpg" alt="" /></a>
								<h4>提示</h4>
								<p>您是否要取消订单？</p>
								<div>
									<a style="margin-right:10; color: white;width: 30px;" class="con" href="<?php echo U('Porder/del',array('orderno'=>$v['orderno']));?>">确定</a>
									<a style="margin: 0; width: 30px;background: #ccc;" class="canc" href="javascript:;">取消</a>
								</div>
			
							</div>
							<!--弹出提示框-->
					<span>总计：</span>
					<span class="spec"><?php echo $v['tprice'];?></span>
					<a href="">付款</a>
				</div>
			<?php } ?>
			
		<?php }?>
		<?php } ?>
		<!--订单详情结束-->
	</div><!--order-->
	
	
	<!--我的订单主体内容部分结束-->
	
		<!--尾部开始-->
	<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!--尾部开始-->
	<div id="last">
		<ul class="head">
			<li class="first">
				<p class="title">4000-800-577</p>
				<p>美丽说客服热线</p>
				<p class="time">周一至周日：08:00-22:00</p>
			</li>
			<li>
				<p class="title">用户帮助</p>
				<a href="">新手指南</a>
				<a href="">网站地图</a>
				<a href="">意见反馈</a>
			</li>
			<li>
				<p class="title">关于我们</p>
				<a href="">关于美丽说</a>
				<a href="">联系我们</a>
				<a href="">加入美丽说</a>
				<a href="">商家进驻</a>
				<a href="">商家推广</a>
			</li>
			<li class="focus">
				<p class="title">关注我们</p>
				<a href=""><span class="xin"></span>新浪微博</a>
				<a href=""><span class="qq"></span>QQ空间</a>
				<a href=""><span class="teng"></span>腾讯微博</a>
			</li>
			<li class="">
				<p class="title">美丽说微信服务号</p>
				<img src="http://localhost/meilishuo/template/default/img/er.jpg" alt="" />
				
			</li>
			<li class="last">
				<p class="title">美丽说客户端下载</p>
				<a href=""><img src="http://localhost/meilishuo/template/default/img/download.png" alt="" /></a>
				
			</li>
		</ul><!--head-->
		<ul class="flink">
			<li>友情链接：</li>
			<li><a href="">乐淘网</a></li>
			<li><a href="">马可波罗悠哉旅游网</a></li>
			<li><a href="">优惠券应用汇</a></li>
			<li><a href="">爱乐活蜜芽宝贝</a></li>
			<li><a href="">趣分期大学生分期购物</a></li>
			<li><a href="">名鞋库</a></li>
			<li class="more"><a href="">更多&gt;&gt;</a></li>
		</ul><!--flink-->
		<div class="record">
			<p>Copyright ©2015 Meilishuo.com<a href="">电信与信息服务业务经营许可证100798号</a><a href="">企业法人营业执照</a>京ICP备11031139号  京公网安备110108006045 </p>
			<p>客服邮箱：kf@meilishuo.com  客服电话：4000-800-577  文明办网文明上网举报电话：010-82615762<a href="">违法不良信息举报中心</a><a href="">我最喜爱的人民警察评选&gt;&gt;</a></p>
		</div><!--record-->
	</div><!--last-->
	
	<!--尾部结束-->
	
	<!--尾部结束-->
</body>
</html>